/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package main.java.cn.webrx;

import java.io.File;

/**
 * <p>Project: jse2204 - FileDelFileDemo
 * <p>Powered by webrx On 2022-09-21 09:13:47
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class FileDelFileDemo {
    public static void main(String[] args) {
        //删除文件 delete() 方法
        String f = "c:\\abc\\abc.iml";
        File file = new File(f);
        System.out.println(file.isFile());
        System.out.println(file.exists());
        System.out.println(file.getName());
        System.out.println(file.length());
        file.delete();
    }
}
